package com.icss.controller;

import com.icss.dao.IAdminDao;
import com.icss.entity.Sysadmin;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpSession;

@Controller
public class SysadminController {

    @Autowired
    private IAdminDao iadminDao;

    @RequestMapping("AdminLogin")
    public  String  Sysadminfun01(String adminid, HttpSession session){

        Sysadmin sysadmin = iadminDao.AdminLoginCheckById(adminid);

        session.setAttribute("sysadmin",sysadmin);
        return "good";
    }
}
